home *** CD-ROM | disk | FTP | other *** search
/ Gamecube Preview CD ROM / 04 - Gamecube Preview CD-ROM.iso / pc / site / gamecube.swf / scripts / DefineSprite_602 / frame_1 / DoAction.as
Encoding:
Text File  |  2001-09-17  |  380 b   |  17 lines

  1. function moveAround()
  2. {
  3.    xpercent = Math.round(_root._xmouse / width * 100);
  4.    ypercent = Math.round(_root._ymouse / height * 100);
  5.    ypos = yrun / 100 * ypercent * -1;
  6.    xpos = xorgin + xrun / 100 * xpercent * -1;
  7.    sharp._y = ypos;
  8.    blur._y = ypos;
  9.    sharp._x = xpos;
  10.    blur._x = xpos;
  11. }
  12. width = 760;
  13. height = 600;
  14. yrun = 57;
  15. xrun = 278;
  16. xorgin = 215;
  17.